package com.wframe.project.former.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wframe.project.jnd.services.OrderService;

/**
 * 订单状态服务(自动收货检查任务,7天自动收货)
 *
 * @author lenovo
 */
@Component
public class OrderTask {

    @Autowired
    OrderService orderService;

    @RedisLock("orderTask")
    public void exectask() {
        try {
            orderService.receiptchecktask(7);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}
